package logik;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

import design.HotelJList;


public class FileWritter 
{
	FileWriter writer;
	File file;
	private String ergeb;
	
	public void schreiben(String eg)
	{
		ergeb=eg;
	
	file = new File("hotels.txt");
	try{
	
		writer = new FileWriter(file, true);
		writer.write(ergeb);
		writer.write(Character.LINE_SEPARATOR);
		writer.close();
		} catch (IOException e){
			e.printStackTrace();
		}
	
	}
}
